OLE2open

Syntax: @OLE2open Prog_ID, Channel

The OLE2open command opens an OLE2 automation connection to the specified server application.

Prog_ID: This is a string containing the program ID for the particular automation server. The program ID is held in the system registry along with all the relevant information to use that particular automation server.

Channel: A numeric variable which holds the channel number for passing to the @OLE2call and @OLE2close commands.

Example

@OLE2open 'Word.Basic', word_channel

This opens a connection to the Microsoft Word for Windows OLE2 automation server.